﻿@using WI.CandidateManager.Common.Data.Enums
@model WI.CandidateManager.Common.Data.Entities.Coursework

@{
    ViewBag.Title = @Resources.Common.CommonCourseworkCreate;
}

<h2>@Resources.Common.CommonCourseworkCreate</h2>

@using (Html.BeginForm("Create", "Courseworks", FormMethod.Post, new { @class = "" }))
{
     @Html.ValidationSummary(true)
    
    <table class="bordered">
        <tr>
            <td class="vertical-header">@Html.LabelFor(model => model.Name)</td>
            <td>@Html.EditorFor(model => model.Name, new { @class = "" })</td>
        </tr>
        <tr>
            <td class="vertical-header">@Html.LabelFor(model => model.Description)</td>
            <td>@Html.TextAreaFor(model => model.Description, new { @class = "common-textarea-wide" })</td>
        </tr>
        <tr>
            <td class="vertical-header">@Html.LabelFor(model => model.Attachment)</td>
            <td>Here will be UPLOAD button after you create Coursework</td>
        </tr>
        <tr>
            <td class="vertical-header">@Html.LabelFor(model => model.State)</td>
            <td>@Html.DropDownListFor(model => model.State, new SelectList(Enum.GetValues(typeof(State))))</td>
        </tr>
    </table>

    <p>
        @Html.ActionLink(@Resources.Common.CommonButtonCancel, "List", "Courseworks", new { @class = "common-btn-large BlueColor" }) <input type="submit" value=@Resources.Common.CommonButtonCreate class="common-btn-large BlueColor" />
    </p>
}
